#include "ALarret.h"
#include "Robot.h"

extern Robot* robot;

/**
 * avance le robot
 */
void ALarret::avancer(Position &p)
{
	robot->position().setX(p.getX());
	robot->position().setY(p.getY());
	std::cout << "Avance" << std::endl;
}

/**
 * tourne le robot
 */
void ALarret::tourner(Direction &direction)
{
	robot->direction().setDirection(direction.getDirection());
	std::cout << "Tourne vers " << direction.getDirection() << std::endl;
}
